//
//  IntroduceViewController.m
//  HandheldHospital
//
//  Created by zhangchao on 16/3/2.
//  Copyright © 2016年 zhangchao. All rights reserved.
//

#import "IntroduceViewController.h"

#define kWidth self.view.frame.size.width
#define kHeight self.view.frame.size.height

@interface IntroduceViewController ()<UITextViewDelegate>

@property (nonatomic,strong)UITextView *textViews;
@end

@implementation IntroduceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"医院介绍";
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.textViews = [[UITextView alloc] initWithFrame:CGRectMake(kWidth * 0.05, kHeight * 0.1, kWidth * 0.9, kHeight * 0.9)] ;
    self.textViews.editable = NO;//禁止编辑
    
//    self.textViews.delegate = self;
    self.automaticallyAdjustsScrollViewInsets = NO;
    
    self.textViews.font = [UIFont systemFontOfSize:16];
    
    self.textViews.text = self.introduce;
    
    self.textViews.showsVerticalScrollIndicator = NO;
//    self.textViews.contentInset = UIEdgeInsetsMake(0, 0, CGRectGetWidth(self.view.bounds), CGRectGetHeight(self.view.bounds));
    
    self.textViews.scrollEnabled = YES;
    
    [self.view addSubview:self.textViews];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
